@import url("https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap");

body {
  direction: rtl;
  font-family: "El Messiri", sans-serif;
}

:root {
  --ebatc1-dark: #0f172a; /* Dark - النصوص الرئيسية */
  --ebatc1-white: #ffffff; /* أبيض */
  --ebatc1-primary: #1d3052; /* Navy - خلفية القسم */
  --ebatc1-secondary: #f68322; /* Blue - الأزرار والعناوين */

  --ebatc1-container-width: 1440px;

  --ebatc1-space-xs: 0.4rem;
  --ebatc1-space-sm: 0.8rem;
  --ebatc1-space-md: 1.2rem;
  --ebatc1-space-lg: 2rem;
  --ebatc1-space-xl: 3rem;

  --ebatc1-fs-sm: 0.85rem;
  --ebatc1-fs-base: 1rem;
  --ebatc1-fs-md: 1.1rem;
  --ebatc1-fs-lg: 1.125rem;
  --ebatc1-fs-xl: 1.6rem;
  --ebatc1-fs-2xl: 1.25rem;

  --ebatc1-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ebatc1-stats-section {
  background-color: var(--ebatc1-primary);
  padding: var(--ebatc1-space-md) 0;
  /* مسافة للقسم من الأعلى والأسفل */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--ebatc1-space-md);
  /* بديل المسافات الخارجية المتكررة */
  width: 100%;
}

.ebatc1-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--ebatc1-space-sm);
}

/* العنوان الرئيسي وكلمة التمييز */
.ebatc1-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: bold;
  color: var(--ebatc1-secondary);
}

.ebatc1-title-highlight {
  color: var(--ebatc1-white);
}

/* الخط السفلي الأنيق للعنوان  */
.ebatc1-underline {
  width: 80px;
  height: 2px;
  background-color: var(--ebatc1-secondary);
  position: relative;
}

.ebatc1-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ebatc1-space-md);
  max-width: calc(var(--ebatc1-container-width) - 2em);
  width: 100%;
}

.ebatc1-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ebatc1-space-md);
  align-items: center;
  justify-content: center;
  padding-inline: var(--ebatc1-space-xs);
}

/* =========================================
   العناصر الداخلية (البطاقات)
========================================= */
.ebatc1-orb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ebatc1-space-md);
  /* المسافة بين الدائرة والنص */
  box-shadow: 4px 4px 15px var(--ebatc1-secondary);
  border-radius: 10px;
  padding: var(--ebatc1-space-xs);

  text-align: center;
}

.ebatc1-orb-graphic {
  position: relative;
  width: clamp(90px, 10vw, 120px);
  /* حجم متجاوب للدائرة */
  height: clamp(90px, 10vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* تنسيق الـ SVG ليأخذ حجم الحاوية بالكامل */
.ebatc1-orb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  /* تدوير نقطة البداية للأعلى */
}

/* التنسيق المشترك لخطوط الدائرة */
.ebatc1-circle-fill,
.ebatc1-circle-progress {
  fill: transparent;
  stroke-width: 3;
  /* سمك خط مثالي */
  stroke-dasharray: 314.16;
  /* المحيط الكامل للدائرة */
}

/* الدائرة الأساسية البيضاء */
.ebatc1-circle-fill {
  stroke: var(--ebatc1-white);
}

/* دائرة التقدم الملونة */
.ebatc1-circle-progress {
  stroke: var(--ebatc1-secondary);
  stroke-dashoffset: 314.16;
  /* الدائرة مخفية في البداية */
  transition: stroke-dashoffset 1.5s linear;
}

/* =========================================
   النصوص المتجاوبة
========================================= */
.ebatc1-orb-value {
  font-size: clamp(var(--ebatc1-fs-xl), 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ebatc1-white);
  z-index: 1;
}

.ebatc1-orb-label {
  color: var(--ebatc1-white);
  text-transform: uppercase;
  font-size: clamp(var(--ebatc1-fs-sm), 1.5vw, var(--ebatc1-fs-base));
}

/* =========================================
   فئة التشغيل عند التمرير (تُضاف عبر JS)
========================================= */
.ebatc1-orb-card.ebatc1-is-animated .ebatc1-circle-progress {
  stroke-dashoffset: 0;
  /* تعبئة الدائرة بالكامل */
}

@media (max-width: 768px) {
  .ebatc1-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .ebatc1-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
